-- GENERATED SPELL FOR [Strashaz Hydra] --


function spell0_4374(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(16128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4374', 0, 1)
end

function spell1_4374(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4374', 652, 1)
end

function Sorts_4374(pUnit, Event)
local choix_sorts_4374 = math.random(0, 1)
if choix_sorts_4374 == 0 then
pUnit:RegisterEvent('spell0_4374', 1, 1)
end
if choix_sorts_4374 == 1 then
pUnit:RegisterEvent('spell1_4374', 1, 1)
end
end

function mob4374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4374', math.random(1500, 3000), 1)
end

function mob4374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4374, 1, 'mob4374_Action')
RegisterUnitEvent(4374, 2, 'mob4374_Leave')
RegisterUnitEvent(4374, 3, 'mob4374_Kill')
RegisterUnitEvent(4374, 4, 'mob4374_Die')
